﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GeCo_MenuPrincipal
{
    public class CPlante : CEtreVivant
    {
        
        public CPlante(int index)
        {
            this.Id = CEtreVivant.IdCount;
            CEtreVivant.IdCount++;
            this.Espece = Program.conteneur.ListeIndividus[index].TypeEspece;
            this.libelle = Program.conteneur.ListeIndividus[index].NomEspece;
            this.EsperenceVieMax = Convert.ToInt32(Program.conteneur.ListeIndividus[index].EsperenceVieMax);
            this.age = 0;
            this.NiveauFaim = Convert.ToInt32(Program.conteneur.ListeIndividus[index].NiveauFaimMax);
            this.NiveauFaimMax = Convert.ToInt32(Program.conteneur.ListeIndividus[index].NiveauFaimMax);
            this.Libido = Convert.ToInt32(Program.conteneur.ListeIndividus[index].LibidoMax);
            this.LibidoMax = Convert.ToInt32(Program.conteneur.ListeIndividus[index].LibidoMax);
            this.AgeDebutReprod = Convert.ToInt32(Program.conteneur.ListeIndividus[index].AgeDebutReprod);
            this.AgeFinReprod = Convert.ToInt32(Program.conteneur.ListeIndividus[index].AgeFinReprod);
            this.DejaDeplace = false;
        }
    }
}
